<?php

require_once 'Zend/Controller/Action.php';

/*

expireSessionCookie()

*/

class Safe_LogoutController extends Zend_Controller_Action
{
	public function indexAction()
	{
		require_once 'Zend/Auth.php';
		$auth = Zend_Auth::getInstance();
		$authStore = $auth->getStorage()->read();

		$this->view->title = 'Logout';
		if(isset($authStore->status)){
			$this->view->message = 'Logout '.$authStore->alias;
			$auth->clearIdentity();
		}
	}
}
?>